<!DOCTYPE html>
<html ng-app='test'>
  <head>
    <meta charset="utf-8">
    <title></title>
    <script src="angular.js"></script>
    <script src="common.js"></script>

    <script type="text/javascript">
      let mod = angular.module('test',['common']);
      mod.controller('main',function($scope,$http){
        $http({
          method: 'post',
          url: 'post.php',
          data: {a:12,b:5}
        }).then(res=>{
          alert(res.data);
        },()=>{
          alert('error');
        });
      });
    </script>
    
  </head>
  <body ng-controller='main'>

  </body>
</html>
